"use strict";
cc._RF.push(module, '4a504WjCK9NHpTRuZwsj/UP', 'NativeAdTrigger_Oppo');
// scripts/NativeAdTrigger_Oppo.js

"use strict";

var e = require;
var t = module;
var n = exports;
Object.defineProperty(n, "__esModule", {
  value: !0
});

var o = e("NativeAd_Oppo"),
    i = cc._decorator,
    a = i.ccclass,
    r = i.property,
    s = function (e) {
  __extends(t, e);

  function t() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.keyName = "nullKeyNativeProbability";
    t.nativeAd_Oppo = null;
    return t;
  }

  t.prototype.start = function () {
    SDK.Mgr.Inst.curChannel == SDK.Define.Channel.oppo && SDK.Mgr.Inst.isAdOpen && SDK.Mgr.Inst.customData && console.log("####### keyName:" + this.keyName + "###### hasKey:" + SDK.Mgr.Inst.customData[this.keyName]);
  };

  t.prototype.triggerBtnClick = function () {
    SDK.Mgr.Inst.curChannel == SDK.Define.Channel.oppo && SDK.Mgr.Inst.isAdOpen && SDK.Mgr.Inst.customData && SDK.Mgr.Inst.customData[this.keyName] && Math.random() < SDK.Mgr.Inst.customData[this.keyName] && this.nativeAd_Oppo.click();
  };

  __decorate([r(cc.String)], t.prototype, "keyName", void 0);

  __decorate([r(o["default"])], t.prototype, "nativeAd_Oppo", void 0);

  return __decorate([a], t);
}(cc.Component);

n["default"] = s;

cc._RF.pop();